package team.yidong.fenda.wx.controller;

import net.sf.json.JSONArray;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import team.yidong.fenda.service.HospitalActivityService;

/**
 * Created by xuanlong on 2018/3/15.
 */
@Controller
public class WxHospitalActivityController {
    @Autowired
    HospitalActivityService hospitalActivityService;

    @RequestMapping("/wx/findHospitalActivity")
    @ResponseBody
    public JSONArray findHospitalActivity(@RequestParam Integer hospitalId) {
        return hospitalActivityService.findHospitalActivity(hospitalId);
    }
}
